package com.tianji.remark.service;

import com.tianji.remark.domain.dto.LikeRecordFormDTO;
import com.tianji.remark.domain.po.LikedRecord;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Set;

/**
 * <p>
 * 点赞记录表 服务类
 * </p>
 *
 * @author WFan
 * @since 2025-03-30
 */
public interface ILikedRecordService extends IService<LikedRecord> {
    /**
     * 点赞或取消点赞
     * @param likeRecordFormDTO
     */
    void likeOrCancel(LikeRecordFormDTO likeRecordFormDTO);

    /**
     * 查询点赞状态
     * @param bizIds
     * @return
     */
    Set<Long> likedStatus(List<Long> bizIds);

    /**
     * 定时检测点赞数并发送业务方持久化
     * @param bizType
     */
    void checkLikedTimesAndSendMessage(String bizType, Integer maxBizSize);
}
